package com.his.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;

/**
 * <p>
 * 科室表(done)
 * </p>
 *
 * @author Demoon Liu
 * @since 2022-02-20
 */
@Schema(description = "科室实体类")
public class Department implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "科室id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "拼音缩写码")
    private String code;

    @Schema(description = "类别id")
    private Integer catid;

    @Schema(description = "科室名称")
    private String name;

    @Schema(description = "类型")
    private Integer type;

    @Schema(description = "状态")
    private Integer status;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
    public Integer getCatid() {
        return catid;
    }

    public void setCatid(Integer catid) {
        this.catid = catid;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Department{" +
            "id=" + id +
            ", code=" + code +
            ", catid=" + catid +
            ", name=" + name +
            ", type=" + type +
            ", status=" + status +
        "}";
    }
}
